from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    # 用户模块的URL模式
    path('api/user/', include('user.urls')),  # 包含用户相关页面的路由
    # 角色模块的URL模式
    path('api/role/', include('role.urls')),  # 包含角色相关页面的路由
    # 权限模块的URL模式
    path('api/menu/', include('menu.urls')),  # 包含菜单（权限）相关页面的路由
    path('', include('crawler.urls')),
    path('api/', include('number_video.urls')),
    path('api/auto-publish/', include('auto_publish.urls')),
    path('api/number-video/', include('number_video.urls')),
    path('api/videotest/', include('videotest.urls')),
    path('api/posters/', include('posters.urls')),  # 包含ai海报生成的相关内容

    path('company_chat/', include('company_chat.urls')),  # 用户聊天模块
    path('', include('coze_finance_mate.urls')),  # 财务助手模块
    path('', include('coze_resume_agent.urls')),  # 简历助手模块
    path('', include('coze_analysis_agent.urls')),  # 企业分析助手模块
    path('', include('coze_hr_agent.urls')),  # 人事助手模块
    
    # 启智服
    path('api/recoBot/', include('qiZhiFu_RecoBot.urls')),
    path('api/product/', include('qiZhiFu_Product.urls')),
    # 会议模块的URL模式
    path('meetings/api/', include('meetings.urls')),  # 包含会议相关页面的路由
]

# 开发环境下提供媒体文件访问
if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)


